#include "Logger.hpp"


#include <string>

#include <iostream>
using namespace std;

using namespace std;

Logger& Logger::instance() {
    static Logger logger_;
    return logger_;
}

void Logger::setLogLevel(int level) {
    this->LoggerLevel_ = level;
}

//[info] time xxxxxxxx
void Logger::log(std::string msg) {
    switch (this->LoggerLevel_)
    {
    case INFO:
        /* code */
        cout << "[INFO] " << " : " << msg << endl;;
        break;
    case ERROR:
        cout << "[ERROR] " << " : " << msg << endl;;
        break;
    case FATAL:
        cout << "[FATAL] " << " : " << msg << endl;;
        break;
    case DEBUG:
        cout << "[DEBUG] " << " : " << msg << endl;;
    default:

        break;
    }
    

}